package com.main;

import java.util.Arrays;
import java.util.Scanner;

public class Index {
    public static void main(String[] args) {
        //统计平均分，总分，并从大到小排序
        int[] num = new int[10];
        float sum = 0;
        float avg = 0;
        for (int i = 0; i < num.length; i++) {
            Scanner sc = new Scanner(System.in);
            num[i] = sc.nextInt();
            sum += num[i];
            avg += num[i];
        }
        avg = avg / num.length;
        System.out.println("平均分："+avg);
        System.out.println("总分："+sum);
        System.out.println("从大到小排序：");
        Arrays.sort(num);
        for (int i = 0; i < num.length; i++) {
            System.out.println(num[i]);
        }
    }
}
